# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gparted
pkgver=1.1.0
pkgrel=0
pkgdesc="a graphical partition editor for creating, reorganizing, and deleting disk partitions"
options="!check" # Requires eudev
url="http://gparted.sourceforge.net/"
arch="all"
license="GPL-2.0-or-later"
depends="e2fsprogs ntfs-3g-progs"
makedepends="gtkmm3-dev parted-dev util-linux-dev intltool polkit-dev"
subpackages="$pkgname-doc $pkgname-lang"
source="https://downloads.sourceforge.net/project/gparted/gparted/gparted-$pkgver/gparted-$pkgver.tar.gz
	gparted.in-Use-reliable-way-of-detecting-gpartedbin-.patch
	"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--disable-doc
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="afaad690fccbec7385b078a299b78bf4f0f83999e2661f89cb97f9e8f2b30ee41f0535450075e3a7174967e77c75024df78863d0d90d5e8dc726a487b4ae0bae  gparted-1.1.0.tar.gz
565f65440fed9d603aaff4e08d4c319c62e61bb064f9edc5934f671b3a63df02aa505200c0224038db64a4275352a30913755a4ad030e71e7b5c372a9316c278  gparted.in-Use-reliable-way-of-detecting-gpartedbin-.patch"
